package model
{
	
	public class Userdata
	{
		public var version:String = "";
		private static var _instance:Userdata;
		
		public var userId:int;
		
		public var userAccount:String;
		
		public var userName:String;
		
		public var regdate:String;
		public var isLogin:Boolean = false;
		
		
		public var loginTime:Number = 0;
		
		public var sex:int = 0;
		
		public var birthday:String = "";
		
		public var curState:int = 1;//学习还是考试
	
		public var configVersion:String;

		
		public static function get instance():Userdata
		{
			if(_instance == null)
				_instance = new Userdata();
			return _instance;
		}
		
		public function Userdata()
		{
			
		}
		
		public function resetData():void
		{
			isLogin = false;
			
		}
			
		
	}
}